<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: register.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."register.php";
include LOCALE.LOCALESET."user_fields.php";

$avloserid=$_GET['avloserid'];

$db = mysql_connect($GLOBALS['db_host'], $GLOBALS['db_user'], $GLOBALS['db_password']);
mysql_select_db($GLOBALS['db_name'], $db); 

$query=" SELECT * FROM avloser WHERE avloserid='$avloserid'";
$result=mysql_query($query);
$num1=mysql_numrows($result);

$i=0;
while ($i < $num1) {
$fornavn=mysql_result($result,$i,"fornavn");
$etternavn=mysql_result($result,$i,"etternavn");
++$i;
}

$query=" SELECT avloserid FROM avloser WHERE avloserid='$avloserid'";
$result=mysql_query($query);
$num=mysql_numrows($result);

$i=0;
while ($i < $num) {
$avloserid=mysql_result($result,$i,"avloserid");
++$i;
}

$sau_foring=$_POST['sau_foring'];
$sau_sanking=$_POST['sau_sanking'];
$sau_lamming=$_POST['sau_lamming'];
$storfe_foring=$_POST['storfe_foring'];
$storfe_melking=$_POST['storfe_melking'];
$storfe_kalving=$_POST['storfe_kalving'];
$gris=$_POST['gris'];
$fjerfe=$_POST['fjerfe'];
$traktor=$_POST['traktor'];
$sau_foring_egen=$_POST['sau_foring_egen'];
$sau_sanking_egen=$_POST['sau_sanking_egen'];
$sau_lamming_egen=$_POST['sau_lamming_egen'];
$storfe_foring_egen=$_POST['storfe_foring_egen'];
$storfe_melking_egen=$_POST['storfe_melking_egen'];
$storfe_kalving_egen=$_POST['storfe_kalving_egen'];
$gris_egen=$_POST['gris_egen'];
$fjerfe_egen=$_POST['fjerfe_egen'];
$traktor_egen=$_POST['traktor_egen'];

echo "<br></br>
<p>&nbsp;&nbsp;<a href='profil.php?avloserid=$avloserid'><b><---  Tilbake til profil</b></a></p>
<table class='capmain' border='0' cellpadding='0' align='center' width='608px'>

	<tr>
	<th>Egenvurdering</th>
	</tr>
</table>

<table class='imagetable' table border='0' cellpadding='5' align='center'>

<form action='egenvurdering_update.php?avloserid=".$avloserid."&sjekk=nei' method='post'>
<input type='hidden' name='u_avloserid' value='$avloserid' maxlength='30' style='width:200px;'/>

	<tr>
		<th></th>
		<th>Null</th>
		<th>Litt</th>
		<th>Ok</th>
		<th>Bra</th>
		<th></th>
		<th>Nei Takk</th>
		<th>Helst Ikke</th>
		<th>Ok</th>
		<th>Ja Takk</th>
		<th>&Oslash;nsker &aring; l&aelig;re mer</th>
	</tr>
	<tr>
		<th>Sau: </th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th>
		</tr>
	<tr>";
//----------------Her begynner SAU-FORING-------------------
echo"	
		<th>Foring </th><td>";
if ($sau_foring == 'Null') {
    echo "<input type='radio' name='sau_foring' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring' value='Null' />";
}
echo" </td><td>";
if ($sau_foring == 'Litt') {
    echo "<input type='radio' name='sau_foring' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring' value='Litt' />";
}
echo" </td><td>";
if ($sau_foring == 'Ok') {
echo"    <input type='radio' name='sau_foring' value='Ok' checked='checked' />";
}
else {    
echo" <input type='radio' name='sau_foring' value='Ok' />";
}
echo" </td><td>";
if ($sau_foring == 'Bra') {
    echo "<input type='radio' name='sau_foring' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring' value='Bra' />";
} 

echo"	</td>
		<th></th>				
		<td>";
if ($sau_foring_egen == 'Nei Takk') {
    echo "<input type='radio' name='sau_foring_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring_egen' value='Nei Takk' />";
}
echo" </td><td>";

if ($sau_foring_egen == 'Ok') {
    echo "<input type='radio' name='sau_foring_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring_egen' value='Ok' />";
}
echo" </td><td>";

if ($sau_foring_egen == 'Helst Ikke') {
    echo "<input type='radio' name='sau_foring_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring_egen' value='Helst Ikke' />";
}
echo" </td><td>";
if ($sau_foring_egen == 'Ja Takk') {
    echo "<input type='radio' name='sau_foring_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring_egen' value='Ja Takk' />";
} 
echo" </td><td>";
if ($sau_foring_egen = '%nske%') {
    echo "<input type='radio' name='sau_foring_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_foring_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo"</td></tr>
	       <tr>";
//---------------Her begynner SAU-SANKING------------------------------
echo"		   
<th>Sanking </th><td>";
if ($sau_sanking == 'Null') {
    echo "<input type='radio' name='sau_sanking' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking' value='Null' />";
}
echo" </td><td>";
if ($sau_sanking == 'Litt') {
    echo "<input type='radio' name='sau_sanking' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking' value='Litt' />";
}
echo" </td><td>";
if ($sau_sanking == 'Ok') {
    echo "<input type='radio' name='sau_sanking' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking' value='Ok' />";
}
echo" </td><td>";
if ($sau_sanking == 'Bra') {
    echo "<input type='radio' name='sau_sanking' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking' value='Bra' />";
} 

echo"	</td>
		<th></th>				
		<td>";
if ($sau_sanking_egen == 'Nei Takk') {
    echo "<input type='radio' name='sau_sanking_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking_egen' value='Nei Takk' />";
}
echo" </td><td>";

if ($sau_sanking_egen == 'Ok') {
    echo "<input type='radio' name='sau_sanking_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking_egen' value='Ok' />";
}
echo" </td><td>";

if ($sau_sanking_egen == 'Helst Ikke') {
    echo "<input type='radio' name='sau_sanking_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($sau_sanking_egen == 'Ja Takk') {
    echo "<input type='radio' name='sau_sanking_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking_egen' value='Ja Takk' />";
} 
echo' </td><td>';
if ($sau_sanking_egen = '%nsker%') {
    echo "<input type='radio' name='sau_sanking_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_sanking_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo'</td></tr>
	<tr>';
//-------------------Her begynner SAU-LAMMING-----------------------------
echo'
		<th>Lamming </th><td>';
if ($sau_lamming == 'Null') {
    echo "<input type='radio' name='sau_lamming' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming' value='Null' />";
}
echo' </td><td>';
if ($sau_lamming == 'Litt') {
    echo "<input type='radio' name='sau_lamming' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming' value='Litt' />";
}
echo' </td><td>';
if ($sau_lamming == 'Ok') {
    echo "<input type='radio' name='sau_lamming' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming' value='Ok' />";
}
echo' </td><td>';
if ($sau_lamming == 'Bra') {
    echo "<input type='radio' name='sau_lamming' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming' value='Bra' />";
} 

echo'	</td>
		<th></th>				
		<td>';
if ($sau_lamming_egen == 'Nei Takk') {
    echo "<input type='radio' name='sau_lamming_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming_egen' value='Nei Takk' />";
}
echo' </td><td>';

if ($sau_lamming_egen == 'Ok') {
    echo "<input type='radio' name='sau_lamming_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming_egen' value='Ok' />";
}
echo' </td><td>';

if ($sau_lamming_egen == 'Helst Ikke') {
    echo "<input type='radio' name='sau_lamming_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($sau_lamming_egen == 'Ja Takk') {
    echo "<input type='radio' name='sau_lamming_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming_egen' value='Ja Takk' />";
} 
echo' </td><td>';
if ($sau_lamming_egen = '%nsker%') {
    echo "<input type='radio' name='sau_lamming_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='sau_lamming_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo'</td></tr>
	<tr>
		<th>Storfe:</th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th>
	</tr>
	<tr>';
//----------------------Her begynner STORFE-FORING------------------------
echo'
		<th>Foring </th><td>';
if ($storfe_foring == 'Null') {
    echo "<input type='radio' name='storfe_foring' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring' value='Null' />";
}
echo' </td><td>';
if ($storfe_foring == 'Litt') {
    echo "<input type='radio' name='storfe_foring' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring' value='Litt' />";
}
echo' </td><td>';
if ($storfe_foring == 'Ok') {
    echo "<input type='radio' name='storfe_foring' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring' value='Ok' />";
}
echo' </td><td>';
if ($storfe_foring == 'Bra') {
    echo "<input type='radio' name='storfe_foring' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring' value='Bra' />";
} 

echo'	</td>
		<th></th>				
		<td>';
if ($storfe_foring_egen == 'Nei Takk') {
    echo "<input type='radio' name='storfe_foring_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring_egen' value='Nei Takk' />";
}
echo' </td><td>';

if ($storfe_foring_egen == 'Ok') {
    echo "<input type='radio' name='storfe_foring_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring_egen' value='Ok' />";
}
echo' </td><td>';

if ($storfe_foring_egen == 'Helst Ikke') {
    echo "<input type='radio' name='storfe_foring_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($storfe_foring_egen == 'Ja Takk') {
    echo "<input type='radio' name='storfe_foring_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring_egen' value='Ja Takk' />";
} 
echo' </td><td>';
if ($storfe_foring_egen = '%nsker%') {
    echo "<input type='radio' name='storfe_foring_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_foring_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo'</td></tr>
	<tr>';
//------------------Her begynner STORFE-MELKING--------------------------------
echo'
		<th>Melking </th><td>';
if ($storfe_melking == 'Null') {
    echo "<input type='radio' name='storfe_melking' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking' value='Null' />";
}
echo' </td><td>';
if ($storfe_melking == 'Litt') {
    echo "<input type='radio' name='storfe_melking' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking' value='Litt' />";
}
echo' </td><td>';
if ($storfe_melking == 'Ok') {
    echo "<input type='radio' name='storfe_melking' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking' value='Ok' />";
}
echo' </td><td>';
if ($storfe_melking == 'Bra') {
    echo "<input type='radio' name='storfe_melking' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking' value='Bra' />";
} 

echo'	</td>
		<th></th>				
		<td>';
if ($storfe_melking_egen == 'Nei Takk') {
    echo "<input type='radio' name='storfe_melking_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking_egen' value='Nei Takk' />";
}
echo' </td><td>';

if ($storfe_melking_egen == 'Ok') {
    echo "<input type='radio' name='storfe_melking_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking_egen' value='Ok' />";
}
echo' </td><td>';

if ($storfe_melking_egen == 'Helst Ikke') {
    echo "<input type='radio' name='storfe_melking_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($storfe_melking_egen == 'Ja Takk') {
    echo "<input type='radio' name='storfe_melking_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking_egen' value='Ja Takk' />";
} 
echo' </td><td>';
if ($storfe_melking_egen = '%nsker%') {
    echo "<input type='radio' name='storfe_melking_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_melking_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo'</td></tr>
	<tr>';
//---------------------------Her begynner STORFE-KALVING-----------------------	
echo'
		<th>Kalving </th><td>';
if ($storfe_kalving == 'Null') {
    echo "<input type='radio' name='storfe_kalving' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving' value='Null' />";
}
echo' </td><td>';
if ($storfe_kalving == 'Litt') {
    echo "<input type='radio' name='storfe_kalving' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving' value='Litt' />";
}
echo' </td><td>';
if ($storfe_kalving == 'Ok') {
    echo "<input type='radio' name='storfe_kalving' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving' value='Ok' />";
}
echo' </td><td>';
if ($storfe_kalving == 'Bra') {
    echo "<input type='radio' name='storfe_kalving' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving' value='Bra' />";
} 

echo'	</td>
		<th></th>				
		<td>';
if ($storfe_kalving_egen == 'Nei Takk') {
    echo "<input type='radio' name='storfe_kalving_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving_egen' value='Nei Takk' />";
}
echo' </td><td>';

if ($storfe_kalving_egen == 'Ok') {
    echo "<input type='radio' name='storfe_kalving_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving_egen' value='Ok' />";
}
echo' </td><td>';

if ($storfe_kalving_egen == 'Helst Ikke') {
    echo "<input type='radio' name='storfe_kalving_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($storfe_kalving_egen == 'Ja Takk') {
    echo "<input type='radio' name='storfe_kalving_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving_egen' value='Ja Takk' />";
} 
echo' </td><td>';
if ($storfe_kalving_egen = '%nsker%') {
    echo "<input type='radio' name='storfe_kalving_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='storfe_kalving_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo'</td></tr>
	<tr>';
//------------------------Her begynner GRIS---------------------------------------
echo'
		<th>Gris </th><td>';
if ($gris == 'Null') {
    echo "<input type='radio' name='gris' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris' value='Null' />";
}
echo' </td><td>';
if ($gris == 'Litt') {
    echo "<input type='radio' name='gris' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris' value='Litt' />";
}
echo' </td><td>';
if ($gris == 'Ok') {
    echo "<input type='radio' name='gris' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris' value='Ok' />";
}
echo' </td><td>';
if ($gris == 'Bra') {
    echo "<input type='radio' name='gris' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris' value='Bra' />";
} 

echo'	</td>
		<th></th>				
		<td>';
if ($gris_egen == 'Nei Takk') {
    echo "<input type='radio' name='gris_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris_egen' value='Nei Takk' />";
}
echo' </td><td>';

if ($gris_egen == 'Ok') {
    echo "<input type='radio' name='gris_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris_egen' value='Ok' />";
}
echo' </td><td>';

if ($gris_egen == 'Helst Ikke') {
    echo "<input type='radio' name='gris_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($gris_egen == 'Ja Takk') {
    echo "<input type='radio' name='gris_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris_egen' value='Ja Takk' />";
} 
echo' </td><td>';

if ($gris_egen = '%nsker%') {
    echo "<input type='radio' name='gris_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='gris_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo'</td></tr>
	<tr>';
//-----------------------Her begynner FJERFE---------------------------
echo'
	<tr>
   <th>Fj&aelig;rfe:</th><td>';
if ($fjerfe == 'Null') {
    echo "<input type='radio' name='fjerfe' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe' value='Null' />";
}
echo' </td><td>';

if ($fjerfe == 'Litt') {
    echo "<input type='radio' name='fjerfe' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe' value='Litt' />";
}
echo' </td><td>';
if ($fjerfe == 'Ok') {
    print '<input type="radio" name="fjerfe" value="Ok" checked="checked" />';
}
else {    
    echo "<input type='radio' name='fjerfe' value='Ok' />";
}
echo' </td><td>';
if ($fjerfe == 'Bra') {
    echo "<input type='radio' name='fjerfe' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe' value='Bra' />";
} 

echo'	</td>
		<th></th>				
		<td>';
if ($fjerfe_egen == 'Nei Takk') {
    echo "<input type='radio' name='fjerfe_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe_egen' value='Nei Takk' />";
}
echo' </td><td>';

if ($fjerfe_egen == 'Ok') {
    echo "<input type='radio' name='fjerfe_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe_egen' value='Ok' />";
}
echo' </td><td>';

if ($fjerfe_egen == 'Helst Ikke') {
    echo "<input type='radio' name='fjerfe_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($fjerfe_egen == 'Ja Takk') {
    echo "<input type='radio' name='fjerfe_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe_egen' value='Ja Takk' />";
} 
echo' </td><td>';
if ($fjerfe_egen = '%nsker%') {
    echo "<input type='radio' name='fjerfe_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='fjerfe_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo'</td></tr>
	<tr>';
//------------------Her begynner TRAKTOR---------------------------
echo'
	<tr>
		<th>Traktor:</th><td>';
if ($traktor == 'Null') {
    echo "<input type='radio' name='traktor' value='Null' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor' value='Null' />";
}
echo' </td><td>';
if ($traktor == 'Litt') {
    echo "<input type='radio' name='traktor' value='Litt' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor' value='Litt' />";
}
echo' </td><td>';
if ($traktor == 'Ok') {
    echo "<input type='radio' name='traktor' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor' value='Ok' />";
}
echo' </td><td>';
if ($traktor == 'Bra') {
    echo "<input type='radio' name='traktor' value='Bra' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor' value='Bra' />";
} 

echo'	</td>
		<th></th>				
		<td>';
if ($traktor_egen == 'Nei Takk') {
    echo "<input type='radio' name='traktor_egen' value='Nei Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor_egen' value='Nei Takk' />";
}
echo' </td><td>';

if ($traktor_egen == 'Ok') {
    echo "<input type='radio' name='traktor_egen' value='Ok' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor_egen' value='Ok' />";
}
echo' </td><td>';

if ($traktor_egen == 'Helst Ikke') {
    echo "<input type='radio' name='traktor_egen' value='Helst Ikke' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor_egen' value='Helst Ikke' />";
}
echo' </td><td>';
if ($traktor_egen == 'Ja Takk') {
    echo "<input type='radio' name='traktor_egen' value='Ja Takk' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor_egen' value='Ja Takk' />";
} 
echo' </td><td>';
if ($traktor_egen = '%nsker%') {
    echo "<input type='radio' name='traktor_egen' value='&Oslash;nsker &aring; l&aelig;re mer' checked='checked' />";
}
else {    
    echo "<input type='radio' name='traktor_egen' value='&Oslash;nsker &aring; l&aelig;re mer' />";
} 

echo"</td></tr>

	<tr>
		<th><input type='Submit' value='Oppdater'></th>
	</tr>
</form>
</table>";

require_once THEMES."templates/footer.php";
?>
